package com.tech.zhidengxian.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tech.zhidengxian.model.dataobject.CategoryDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper extends BaseMapper<CategoryDO> {
    default List<CategoryDO> selectCategoryList(){
        LambdaQueryWrapper<CategoryDO> wrapper = new LambdaQueryWrapper<>();
        return selectList(wrapper);
    }
}
